package com.pinapel.aixml.controller.Menu;

import com.pinapel.aixml.controller.IMainController;
import com.pinapel.aixml.controller.IMenuController;
import com.pinapel.aixml.models.Model;

import com.pinapel.aixml.ui.menuBar.MenuView;


/**
 * Controlador para el menu ver
 * @author Ruben Perez Lujano
 * @since mayo 2012
 */
public class MenuViewController implements IMenuViewController {
	private MenuView mView;
	private IMenuController mTopController;
	
	/**
	 * Constructor
	 * @param top 
	 */
	public MenuViewController(IMenuController top) {
		mTopController=top;
	}
	
	@Override
	public IMainController getMainController() {
		return mTopController.getMainController();
	}
	
	public void setView(MenuView view){
		this.mView=view;
		this.mView.setController(this);
	}

	@Override
	public Model getModel() {
		// TODO Auto-generated method stub
		return this.getMainController().getModel();
	}





}
